<!DOCTYPE html>
<!-- saved from url=(0043)http://ec-test.casstime.com/portal/products -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta content="charset=UTF-8">
  <meta name="format-detection" content="telephone=no">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="author" content="jimxu - casstime">
  <title>开思</title>
  <link rel="shortcut icon" href="http://ec-test.casstime.com/static/common/favicon.ico">

  <link rel="stylesheet" href="./开思_files/bootstrap.min.css" type="text/css">
  <link rel="stylesheet" href="./开思_files/style.css" type="text/css">
  <link rel="stylesheet" href="./开思_files/bootstrap.modify.min.css" type="text/css">
  <link rel="stylesheet" href="./开思_files/jQuery.MagnifierRentgen.css" type="text/css">

  <link rel="stylesheet" href="./开思_files/kkpager_orange.css" type="text/css">
  <link rel="stylesheet" href="./开思_files/jquery.tooltip.css" type="text/css">
  <link rel="stylesheet" href="./开思_files/main.css" type="text/css">
  <link rel="stylesheet" href="./开思_files/autocomplete.min.css" type="text/css">
  <link rel="stylesheet" href="./开思_files/autocomplete.min.css">

  <script src="./开思_files/hm.js.下载"></script><script src="./开思_files/hm.js.下载"></script><script src="./开思_files/jquery-1.12.0.min.js.下载"></script>
  <script src="./开思_files/bootstrap.min.js.下载"></script>
  <script src="./开思_files/layer.js.下载"></script><link rel="stylesheet" href="./开思_files/layer.css" id="layui_layer_skinlayercss">
  <script src="./开思_files/jquery.custom-plugins.js.下载"></script>
  <script src="./开思_files/zoom.js.下载"></script>
  <script src="./开思_files/common.js.下载"></script>
  <script src="./开思_files/quick_cart_main.js.下载"></script>
  <!-- 让Bootstrap 3兼容IE8浏览器 Jimxu -->
  <!--[if lte IE 9]>
    <script src="http://ec-test.casstime.com/static/skins/assets/Respond-1.4.2/dest/respond.min.js"></script>
	<script src="http://ec-test.casstime.com/static/skins/assets/html5/html5.js"></script>
  <![endif]-->
<script src="./开思_files/layer-carModel.js.下载" id="layui_layer_extendlayer-carModeljs"></script><script src="./开思_files/layer-cm.js.下载" id="layui_layer_extendlayer-cmjs"></script><link rel="stylesheet" href="./开思_files/layer-cm.css" id="layui_layer_skinlayer-cmcss"><link type="text/css" rel="stylesheet" href="./开思_files/quick_cart.css"><script type="text/javascript" src="./开思_files/announcement.js.下载"></script><link type="text/css" rel="stylesheet" href="./开思_files/popup.css"><script type="text/javascript" src="./开思_files/jquery.SuperSlide.2.1.1.js.下载"></script><link type="text/css" rel="stylesheet" href="./开思_files/slide.css"><script src="./开思_files/layer.custom-photos.js.下载" id="layui_layer_extendlayercustom-photosjs"></script><script type="text/javascript" src="./开思_files/quick_cart_common.js.下载"></script><script type="text/javascript" src="./开思_files/quick_cart.js.下载"></script><script type="text/javascript" src="./开思_files/parabola.js.下载"></script><link rel="stylesheet" href="./开思_files/layer.ext.css" id="layui_layer_skinlayerextcss"><link rel="stylesheet" href="./开思_files/msg.min.css"></head>
<body>
<!-- End Template component://ecommerce/webapp/portal/includes/openhtml.ftl -->
<!-- Begin Template component://ecommerce/webapp/portal/includes/topbar.ftl -->
<script>
if (document.getElementsByTagName("body").length==0){top.location.href="/";}

function AddFavorite(sURL, sTitle) {
    try {
        window.external.addFavorite(sURL, sTitle);
    } catch (e) {
        try {
            window.sidebar.addPanel(sTitle, sURL, "");
        } catch (e) {
            alert("加入收藏失败，请使用Ctrl+D进行添加");
        }
    }
}
</script>
<div class="main-header">

    <div class="topbar">
        <div class="container">
            <div class="row">
                <div class="col-xs-3 text-left server-tel bar-info-menu">
                	 <span><a href="javascript:AddFavorite(&#39;http://www.cassmall.com&#39;,&#39;开思-让采购更简单&#39;);returnfalse;"><i class="icon icon-7"></i>收藏本站</a></span> <i class="gap-1">|</i>
                    <span>服务热线:</span><strong class="tel-number">400-168-6600</strong>
                </div>
                <div class="col-xs-9 text-right bar-info-menu">
                    <span class="top-welcome">
                    	                    		<em class="top-welcome-name">zxzbszd</em> 您好！欢迎光临！<a class="top-welcome-exit" href="http://ec-test.casstime.com/portal/logout">[退出]</a></span>
                             <input type="hidden" id="userLogin" name="userLogin" value="zxzbszd">
                    <i class="gap-1">|</i>
                    <span class="nav-message"><a href="http://ec-test.casstime.com/portal/messageCenter" target="_blank"><i class="icon icon-8"></i>消息中心&nbsp;<span class="nav-badge">1</span></a></span>
                    <i class="gap-1">|</i>
                    <span><a href="http://ec-test.casstime.com/orders/ShoppingCart"><i class="icon icon-4"></i>购物车&nbsp;<span id="shopping-amount" class="shopping-amount" style="color: #e22e33;font-weight:bold">0</span></a></span>
                    <i class="gap-1">|</i>
                    <span><a href="http://ec-test.casstime.com/orders/OrderList"><i class="icon icon-1"></i>我的订单</a></span>
                    <i class="gap-1">|</i>
                    <span><a href="http://ec-test.casstime.com/portal/personalData"><i class="icon icon-2"></i>会员中心<!-- <i class="icon icon-drapdown"></i> --></a></span>
                    <i class="gap-1">|</i>
                    <span><a href="http://ec-test.casstime.com/financial/paymentBillList" target="_blank"><i class="icon icon-9"></i>财务中心<!-- <i class="icon icon-drapdown"></i> --></a></span>
                    <i class="gap-1">|</i>
                    <span><a href="http://ec-test.casstime.com/portal/helpCenter"><i class="icon icon-3"></i>帮助中心</a></span>
                </div>
            </div>
        </div>
    </div>
</div><!-- End Template component://ecommerce/webapp/portal/includes/topbar.ftl -->
<div class="clearfix">
</div><!-- Begin Template component://ecommerce/webapp/portal/includes/header.ftl -->
<style>
.header-menu a{
	/*margin-left:10px;*/
}
</style>
<div class="main-header">
    <div class="header-nav">
        <div class="container">
            <div class="row">
                 <div class="header-logo">
                     <a href="http://ec-test.casstime.com/"><img class="img-responsive" src="./开思_files/LOGO.png" alt=""></a>
                 </div>
			<div class=" header-menu header-menu-title">
             	<!--CLIENT_SHOP、CLIENT_DEALER、CLIENT_STORE、CLIENT_PURCHASE 分别对应 中小客户、分销商、大客户（连锁门店）、大客户（集采中心） -->
                	<a class="header-menu-active" href="http://ec-test.casstime.com/portal/products">商城</a>
                    <a href="http://ec-test.casstime.com/agentBuy">发布询价</a>
                    <a href="http://ec-test.casstime.com/agentBuy/selectAllShoppingList">查看报价</a>
                    <a href="http://ec-test.casstime.com/orders/orderTrack">订单跟踪</a>
                </div>

                <!--添加条件判断防止回填状态和信息问题  -->

                <!-- <div class="col-xs-1 header-trolley">
		          <button class="btn-assertive-count" onclick="javascript:window.location.href='/orders/ShoppingCart'">
		            <span class="icon icon-trolley-red"></span>
		            <span class="ci-count" id="shopping-amount"></span>
		            	购物车
		          </button>
		        </div>
                 -->
            <div><div style="height:62px;line-height:62px;float:right;"><div class="txtScroll-top"><div class="announcement" style="float:left;"><span class="icon-announcement"></span><span class="tip-title">&nbsp;公告&nbsp;:&nbsp;&nbsp;</span></div><div class="bd" style="float:left;"><div class="tempWrap" style="overflow:hidden; position:relative; height:26px"><ul class="infoList" id="infoList" style="height: 130px; position: relative; padding: 0px; margin: 0px; top: -26px;"><li class="clone" style="height: 26px;"><a href="http://ec-test.casstime.com/bulletin/1016" target="_blank"><span>测试图片公告</span></a></li><li style="height: 26px;"><a href="http://ec-test.casstime.com/bulletin/1100" target="_blank"><span>测试多个公告是否会轮播</span></a></li><li style="height: 26px;"><a href="http://ec-test.casstime.com/bulletin/1053" target="_blank"><span>测试公告</span></a></li><li style="height: 26px;"><a href="http://ec-test.casstime.com/bulletin/1016" target="_blank"><span>测试图片公告</span></a></li><li class="clone" style="height: 26px;"><a href="http://ec-test.casstime.com/bulletin/1100" target="_blank"><span>测试多个公告是否会轮播</span></a></li></ul></div></div></div></div></div></div>
        </div>
    </div>
</div>
<script type="text/javascript">
$(function(){
    //加载公告弹框和轮播
	$.include(['/static/common/cass-announcement/announcement.js']);
})

//异步获取搜索历史记录
function getUserSearchHistory(inputObj,flag){
	var keyword = inputObj.val();
	var type = inputObj.attr('name');
  $.ajax({
	    url: "/portal/querySearchHistory",
	    type:'post',
	    data:{
	    		searchKeyword : keyword,
	    		searchType : type
	    	 },
	    dataType:'json',
	    async : true,
	    success:function(response){
	    	var autoContent = [];
	    	var keywordOjects = response.keywordList;
			for(var i=0; i<keywordOjects.length; i++)
			{
				autoContent.push(keywordOjects[i].searchKeyword);
			}
			inputObj.autocomplete('option',{source:autoContent});
			if(flag==0){
				if(keyword==null||keyword==""){
					inputObj.autocomplete('search');
				}else{
					inputObj.autocomplete('search',keyword);
				}
			}
	    }
	});
}
//车型查导航响应
layer.config({extend: 'extend/layer-carModel.js'});
function selectCarModelWin() {
	layer.newCarModel({
		title : "车型",
		cmServiceUrl : "/webtools/control/jsonService?serviceName=solrSearchCarModelNew",
		vinServiceUrl : "/maindata/api/CarModel",
	    contentPrefix : "http://ec-test.casstime.com/static/misc/..",
		complet : function(cmId, vin){
			top.location.href = "/portal/products?cm="+cmId+"&index=1";
		}
	});
}

//车型目录响应
layer.config({extend: 'extend/layer-cm.js'});
function gotoCarModel() {
	layer.showCarModel({
	    title : "车型",
	    cmServiceUrl : "/webtools/control/jsonService?serviceName=solrSearchCarModel",
	    vinServiceUrl : "/portal/getCarModelByVIN",
	    contentPrefix : "http://ec-test.casstime.com/static/misc",
	    epcFliter : true,
		complet : function(cmId, vin){
			var url="/portal/CarModel?model=" + cmId;
			if(vin){
				url+="&vin="+vin;
			}
			top.location.href = url;
		}
	});
}
function beforSearchProduct() {
	var result = true;
	var val = $(".header-search input.header-search-input").val();
	$(".header-search input.header-search-input").val(val.substring(0,100));
	if ($(".header-search input.header-search-input").attr("name") == "vin") {

		if(val == "" || val == null){
			//layer.alert("请输入查询内容", {icon: 2});
			return ;
		}

		$.ajax({
		        url: "/maindata/api/CarModel/" + $(".header-search input.header-search-input").val(),
		        type:'get',
		        dataType:'json',
		        async : false, //默认为true 异步
		        success:function(response){
		        	$("#searchCarModelId").val(response.id);
		        },
		        error:function(response, status) {
		        	var content="";
		        	if(response.status==503||response.status=="503"){
		        		content='<div style="color:#e8383d;"><span><span class="i-replace-parts-test"></span>VIN码不符合校验规则!</span><div>';
		        		layer.tips(content, '.header-search-input', {tips:[3,'#fffdef'],time:3000});
		        	}else{
		        		content='<div style="color:#e8383d;"><span><span class="i-replace-parts-test"></span>查询暂无结果，系统正在努力完善!</span><div>';
			        	layer.tips(content,'.header-search-input',{tips:[3,'#fffdef'],time:3000});
		        	}
		        	$(".layui-layer-TipsG").removeClass("layui-layer-TipsB layui-layer-TipsG");
		        	$("#searchCarModelId").val("");
		        	result = false;
		        }
		});
	} else {
		//若有其他的验证可以放在这里
		result = true;
	}
	return result;
}
 //加载搜索模式切换的事件
 $(".header-search .dropdown .dropdown-menu a").click(function() {
     var $input = $(".header-search input.header-search-input");
	$input.attr("placeholder", $(this).attr("tips")).val($(this).attr("dvalue"))
		.attr("name", $(this).attr("name"));
	$(".header-search .dropdown .dropdown-menu a").removeClass("active");
	$(this).addClass("active");
 });

$(function(){
    //点击需要默认选中的项
    //$(".header-search .dropdown .dropdown-menu a[dvalue]:eq(0)").click();

    shopping_count();
 });



/**
 *查询购物车数量
 */
function shopping_count(){
	 $.ajax({
        url: "/orders/getCartCount",
        type:'post',
        dataType:'json',
        async : true, //默认为true 异步
        success:function(response){
        	if(typeof(response) != 'undefined' && typeof(response.userCartCount) != 'undefined'){
        		setShopping_count(response.userCartCount);
        	}
        },
        error:function(response, status) {}
	});
}
/**
 * 设置购物车数量
 */
function setShopping_count(count){
	$("#shopping-amount").text(count);
	$(".shopping-amount").text(count);
}
</script>

<!-- End Template component://ecommerce/webapp/portal/includes/header.ftl -->
<!-- Begin Template component://ecommerce/webapp/portal/includes/searchBar.ftl -->
<style>
.epcNameShow{
 font-family:'微软雅黑';
 cursor:pointer;
 color:#666666;
 font-size:13px;
 word-break:keep-all;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
 width:190px;float:left
}
.homeSearchBar{
	height:37px;
	background-color:#d93a45;
	line-height:37px;
	margin-top:-1px;
	width:110px;
	padding:0px 0px 0px 0px;
	font-family:'微软雅黑';
}
.btnBatchSearch{
	height:38px;
	width:120px;
	border-radius:2px;
	font-family:'微软雅黑';
	color:#666666;
	background-color:#fafafa;
	font-size:16px;
	padding-top:3px;
}
</style>
<div class="main-header">
    <div class="header-nav" style="background:#f3f3f3 ; height:76px; border:none;margin-bottom:14px">
        <div class="container">
            <div class="row" style="margin-top:15px;">
                <div class="style=&quot;height:60px;" width:auto;float:left"="">
                <div class="selector-row">
						  <div style="line-height:40px;" class="content" cm="" vin="" showvindetail="">
						  		<div style="float:left">
									<span class="epcNameShow">若输入VIN码，可直接确定车型  ...  </span><a id="delCarModel" class="icon-pointer-search"></a>
							</div>
						  </div>
						</div>
                </div>
                <!--添加条件判断防止回填状态和信息问题  -->
                <form class="clearfix" autocomplete="off" onsubmit="return false;">
	                <div style="float:right; line-height: 40px">
	                    <a class="btn btnBatchSearch" style="border:solid #e4e4e4 1px" href="http://ec-test.casstime.com/batchSearch">批量搜<i class="icon-advSearch-batch"></i></a>
	                </div>
	                <div class="header-search-bar" style="width:740px; float:right; margin-right:20px;background-color:#f3f3f3">
	                    <div class="header-search text-right" style="height:38px;margin-top:2px;background-color:white;border-radius: 2px; float:left;width:740px">
	                        <input id="searchCarModelId" name="cm" class="seach-products-cm" type="hidden" cm="" value=""><!-- 增加了value，搜索时，不清除先前的车型条件 -->
                            <input name="vin" type="hidden" class="seach-products-vin" vin="" value=""><!-- 增加了value，搜索时，不清除先前的车型条件 -->
                            <input name="p" type="hidden" class="seach-products-p" p="" value=""><!-- 增加了value，搜索时，不清除先前的车型条件 -->
                            <input name="kw" type="hidden" class="seach-products-kw" kw="" value=""><!-- 增加了value，搜索时，不清除先前的车型条件 -->
                            <label for="keyword-input" class="icon-search" style="float:left;margin-left:2px;margin-top:7px"></label>
	                        <input class="header-search-input seach-products-query ui-autocomplete-input" id="queryInput" style="width:70%;height:35px" name="query" query="" type="text" autocomplete="off" value="" placeholder="请输入VIN码、原厂零件号、品牌件号、配件名称、配件品牌、配件分类信息">
		                    <input class="header-search-submit homeSearchBar" type="button" onclick="searchProducts()" value="搜索">
	                    </div>
	                </div>
                </form>

            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
$(function(){
    //设置输入框自动填充
 	setInputAutoComplete($(".header-search-input"));
    $('#queryInput').keydown(function(e){
    	if(e.keyCode==13){
    	  searchProducts();
    	  //return false;//阻止回车时，表单的默认提交;firefox下无效，统一在form上设置onsubmit=return false;
    	}
    });


})
//设置input自动填充框
var _queryEvent;
function setInputAutoComplete(inputObj){
  	var autoContent = [];
  	inputObj.autocomplete({
	      minLength:0,
	      source:autoContent
	}).focus(function () {

		if(_queryEvent){
   			clearTimeout(_queryEvent);
   		}
		_queryEvent = setTimeout(function (){getUserSearchHistory(inputObj,0);}, 300);

	}).keyup(function (){
		if(_queryEvent){
   			clearTimeout(_queryEvent);
   		}
		_queryEvent = setTimeout(function (){getUserSearchHistory(inputObj);}, 300);

	});
}

//异步获取搜索历史记录
function getUserSearchHistory(inputObj,flag){
  var keyword = inputObj.val();
  var type = inputObj.attr('name');
  $.ajax({
	    url: "/portal/querySearchHistory",
	    type:'post',
	    data:{
	    		searchKeyword : keyword,
	    		searchType : type
	    	 },
	    dataType:'json',
	    async : true,
	    success:function(response){
	    	var autoContent = [];
	    	var keywordOjects = response.keywordList;
			for(var i=0; i<keywordOjects.length; i++)
			{
				autoContent.push(keywordOjects[i].searchKeyword);
			}
			inputObj.autocomplete('option',{source:autoContent});
			if(flag==0){
				if(keyword==null||keyword==""){
					inputObj.autocomplete('search');
				}else{
					inputObj.autocomplete('search',keyword);
				}
			}
	    }
	});
}
//车型查导航响应
layer.config({extend: 'extend/layer-carModel.js'});
function selectCarModelWin() {
	layer.newCarModel({
		title : "车型",
		cmServiceUrl : "/webtools/control/jsonService?serviceName=solrSearchCarModelNew",
		vinServiceUrl : "/maindata/api/CarModel",
	    contentPrefix : "http://ec-test.casstime.com/static/misc/..",
		complet : function(cmId, vin){
			top.location.href = "/portal/products?cm="+cmId+"&index=1";
		}
	});
}

//车型目录响应
layer.config({extend: 'extend/layer-cm.js'});
function gotoCarModel() {
	layer.showCarModel({
	    title : "车型",
	    cmServiceUrl : "/webtools/control/jsonService?serviceName=solrSearchCarModel",
	    vinServiceUrl : "/portal/getCarModelByVIN",
	    contentPrefix : "http://ec-test.casstime.com/static/misc",
	    epcFliter : true,
		complet : function(cmId, vin){
			var url="/portal/CarModel?model=" + cmId;
			if(vin){
				url+="&vin="+vin;
			}
			top.location.href = url;
		}
	});
}
function beforSearchProduct() {
	var result = true;
	var val = $(".header-search input.header-search-input").val();
	$(".header-search input.header-search-input").val(val.substring(0,100));
	if ($(".header-search input.header-search-input").attr("name") == "vin") {

		if(val == "" || val == null){
			//layer.alert("请输入查询内容", {icon: 2});
			return ;
		}

		$.ajax({
		        url: "/maindata/api/CarModel/" + $(".header-search input.header-search-input").val(),
		        type:'get',
		        dataType:'json',
		        async : false, //默认为true 异步
		        success:function(response){
		        	$("#searchCarModelId").val(response.id);
		        	$("#searchCarModelId").attr("cm",response.id);
		        },
		        error:function(response, status) {
		        	var content="";
		        	if(response.status==503||response.status=="503"){
		        		content='<div style="color:#e8383d;"><span><span class="i-replace-parts-test"></span>VIN码不符合校验规则!</span><div>';
		        		layer.tips(content, '.header-search-input', {tips:[3,'#fffdef'],time:3000});
		        	}else{
		        		content='<div style="color:#e8383d;"><span><span class="i-replace-parts-test"></span>查询暂无结果，系统正在努力完善!</span><div>';
			        	layer.tips(content,'.header-search-input',{tips:[3,'#fffdef'],time:3000});
		        	}
		        	$(".layui-layer-TipsG").removeClass("layui-layer-TipsB layui-layer-TipsG");
		        	$("#searchCarModelId").val("");
		        	result = false;
		        }
		});
	} else {
		//若有其他的验证可以放在这里
		result = true;
	}
	return result;
}

 //加载搜索模式切换的事件
 $(".header-search .dropdown .dropdown-menu a").click(function() {
     var $input = $(".header-search input.header-search-input");
	$input.attr("placeholder", $(this).attr("tips")).val($(this).attr("dvalue"))
		.attr("name", $(this).attr("name"));
	$(".header-search .dropdown .dropdown-menu a").removeClass("active");
	$(this).addClass("active");
 });

$(function(){
    //点击需要默认选中的项
    //$(".header-search .dropdown .dropdown-menu a[dvalue]:eq(0)").click();

    shopping_count();
 });



/**
 *查询购物车数量
 */
function shopping_count(){
	 $.ajax({
        url: "/orders/getCartCount",
        type:'post',
        dataType:'json',
        async : true, //默认为true 异步
        success:function(response){
        	if(typeof(response) != 'undefined' && typeof(response.userCartCount) != 'undefined'){
        		setShopping_count(response.userCartCount);
        	}
        },
        error:function(response, status) {}
	});
}
/**
 * 设置购物车数量
 */
function setShopping_count(count){
	$("#shopping-amount").text(count);
}

//重新查询商品列表
function searchProducts(name,val,oldVal){
	beforeSearch();
	loader = layer.load();
	if(oldVal){
		if(oldVal.indexOf(val)>-1){
			oldVal = oldVal.replace(","+val,"");
			oldVal = oldVal.replace(val,"");
			val = oldVal;
		}else{
			val = oldVal+","+val;
		}
	}
	var url = "/portal/products";
	var obj = $(".seach-products-"+name);
	obj.attr(name,val);
	var proNames = ["p","kw","c","s","b","cm","vin","index","o","i","isOEM","query"];
	var pro="";
	for(var i=0;i<proNames.length;i++){
		var proName = proNames[i];
		if(proName=="query"){
		  var parVal=encodeURI($(".seach-products-query").val());
		}else{
		  var parVal = encodeURI($(".seach-products-"+proName).attr(proName));
		}
		if(proName == "c" && parVal == "0"){
			continue;
		}
		if(typeof(parVal) != 'undefined' && parVal != "" && parVal != 'undefined'){
			if(pro){
				pro += "&"+proName+"="+parVal;
			}else{
				pro += "?"+proName+"="+parVal;
			}
		}
	}
	layer.close(loader);
	window.location.href = url+pro;
}

function beforeSearch(){
	$.ajax({
        url : "/portal/getSearchParams/",
        type : 'post',
        data : {query : $(".header-search input.header-search-input").val()},
        dataType : 'json',
        async : false,
        success : function(response){
        	var params = response.params;
        	$(".seach-products-vin").attr("vin",params.vin);
        	$(".seach-products-cm").attr("cm",params.cm);
        	$(".seach-products-p").attr("p",params.p);
        	$(".seach-products-kw").attr("kw",params.kw);
        },
        error:function(response) {

        }
	});
}

</script><!-- End Template component://ecommerce/webapp/portal/includes/searchBar.ftl -->
<div id="content" class="container">
<div class="selector">
<!-- Begin Template component://ecommerce/webapp/portal/product/crumbs.ftl -->
<div class="crumbs-bar">
	<ul class="crumbs-line">
		<li style="padding-left:24px;">配件分类:</li>
		<li class="category-path seach-products-c" c="">
			<ul>
				<li class="path-line all-path" onmouseover="selCategory(&#39;0&#39;,this)" productcategoryid="0">
					<div class="curr">全部</div>
					<div class="sub-items"></div>
					<i class="i-down"></i>
				</li>
			</ul>
		</li>

	</ul>
</div><!-- End Template component://ecommerce/webapp/portal/product/crumbs.ftl -->
<!-- Begin Template component://ecommerce/webapp/portal/product/select.ftl -->
<div class="selector-row seach-products-isOEM" isoem="">
  <span class="name ">配件类别：</span>
  <div class="checkbox  " onclick="checkIsOEM(this,&#39;Y&#39;)"><span class="checkbox-selector"></span><input type="checkbox"><label>原厂件</label></div>
  <div class="checkbox  " onclick="checkIsOEM(this,&#39;N&#39;)"><span class="checkbox-selector"></span><input type="checkbox"><label>品牌件</label></div>
  <!--<div class="checkbox"><input type="checkbox"><label>原厂配套</label></div>-->
</div>




<script type="text/javascript">
layer.config({extend: 'extend/layer-carModel.js'});
//车型选择
function selectCarModelWin() {
	layer.newCarModel({
		title : "请选择车型",
		cmServiceUrl : "/webtools/control/jsonService?serviceName=solrSearchCarModelNew",
		vinServiceUrl : "/maindata/api/CarModel",
	    contentPrefix : "http://ec-test.casstime.com/static/misc/..",
		complet : function(cmId, vin){
			if(typeof(vin) == "undefined"){
				$(".seach-products-vin").attr("vin",'');
			}else{
				$(".seach-products-vin").attr("vin",vin);
			}
			seachProducts("cm",cmId);
		}
	});
}
//选择原厂件
function checkIsOEM(that,isOEM){
    var $that = $(that);
    //获取原有的值
    var oldIsOEM = $(".seach-products-isOEM").attr("isOEM");
    var objIsOEM= new Array();
   if($that.hasClass("checked")&&oldIsOEM.indexOf(isOEM)>=0){
       var objIsOEC =  oldIsOEM.split(",");
       for(var i=0;i<objIsOEC.length;i++){
          if(objIsOEC[i]!=isOEM){
              objIsOEM.push(objIsOEC[i])
          }
       }
      isOEM=objIsOEM.join(",");
   }else{
      if(oldIsOEM&&oldIsOEM!=isOEM){
          isOEM=isOEM+","+oldIsOEM;
       }
   }
   $(".seach-products-isOEM").attr("isOEM",isOEM);
   seachProducts();
}

function delCarModel(){
	$(".seach-products-vin").attr("vin",'');
	seachProducts("cm",'');
}
</script><!-- End Template component://ecommerce/webapp/portal/product/select.ftl -->
</div><!-- Begin Template component://ecommerce/webapp/portal/product/ProductView.ftl -->
<input id="price_service_url" type="hidden" value="/portal/prices">
<input id="inventory_service_url" type="hidden" value="/portal/inventorys">
<input id="product_view_user_login_id" type="hidden" value="zxzbszd">
<style>
#kkpager_btn_go{
	    background-color: #F8F8F8;
}
.layui-layer-btn0 {
	width:100px;
}
a.layui-layer-btn0{
	width:100px;
	font-family:"宋体";
	background-color:#e22e33;
}
/*
.layui-layer-content{
height:90px;
}
*/
.layui-layer-setwin .layui-layer-close1 {
	  width: 21px;
  	height: 21px;
	cursor: pointer
}
.layui-layer-title {
  padding: 0 80px 0 10px;
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid #D5D5D5;
  color: #183961;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
  color:#333333;
  font-size:14px;
  font-family:"宋体";
  background-color:#f3f3f3;
}
</style>
<div class="products-display-condition clearfix seach-products-o" o="">

	<a href="http://ec-test.casstime.com/portal/products#" class="order-item fl active" onclick="seachProducts(&#39;o&#39;,&#39;&#39;)">综合</a>

    <!-- 箭头图标有四种 icon-arrow-down icon-arrow-up icon-arrow-down-white icon-arrow-up-white -->
    <a class="" href="http://ec-test.casstime.com/portal/products#" onclick="seachProducts(&#39;o&#39;,&#39;salesCount desc&#39;)">
			销量 <span class="icon icon-arrow-down"></span>
    </a>
    <a href="http://ec-test.casstime.com/portal/products#" class="" onclick="seachProducts(&#39;o&#39;,&#39;defaultPrice asc&#39;)">
			价格 <span class="icon icon-arrow-up"></span>
    </a>

          <div class="checkbox seach-products-i" i="" onclick="seachProducts(&#39;i&#39;,&#39;hasInventory&#39;)"><span class="checkbox-selector"></span>
            <input type="checkbox"><label>仅显示有货</label>
          </div>

    <div class="delivery-area">
      <div class="dt">配送至：</div>
      <div class="area-selector" id="area-selector"><div class="text" style="cursor: pointer;"><div class="area">广东深圳市</div><span class="glyphicon glyphicon-menu-down"></span></div><div class="content"><a href="javascript:;" class="icon icon-remove-gray close-toggle"></a><ul class="area-tabs"><li data-path="root"><a href="javascript:;"><div class="name">广东</div><span class="glyphicon glyphicon-menu-down"></span></a></li><li data-path="root|CN-44" class="active"><a href="javascript:;"><div class="name">深圳市</div><span class="glyphicon glyphicon-menu-down"></span></a></li></ul><div class="area-tab-content" data-path="root|CN-44" style=""><ul><li data-path="root|CN-44|CN-44-1"><a href="javascript:;">广州市</a></li><li data-path="root|CN-44|CN-44-10"><a href="javascript:;">肇庆市</a></li><li data-path="root|CN-44|CN-44-11"><a href="javascript:;">惠州市</a></li><li data-path="root|CN-44|CN-44-12"><a href="javascript:;">梅州市</a></li><li data-path="root|CN-44|CN-44-13"><a href="javascript:;">汕尾市</a></li><li data-path="root|CN-44|CN-44-14"><a href="javascript:;">河源市</a></li><li data-path="root|CN-44|CN-44-15"><a href="javascript:;">阳江市</a></li><li data-path="root|CN-44|CN-44-16"><a href="javascript:;">清远市</a></li><li data-path="root|CN-44|CN-44-16-9"><a href="javascript:;">东莞市</a></li><li data-path="root|CN-44|CN-44-17"><a href="javascript:;">潮州市</a></li><li data-path="root|CN-44|CN-44-18"><a href="javascript:;">揭阳市</a></li><li data-path="root|CN-44|CN-44-19"><a href="javascript:;">云浮市</a></li><li data-path="root|CN-44|CN-44-2"><a href="javascript:;">韶关市</a></li><li data-path="root|CN-44|CN-44-20"><a href="javascript:;">东莞市</a></li><li data-path="root|CN-44|CN-44-3"><a href="javascript:;">深圳市</a></li><li data-path="root|CN-44|CN-44-4"><a href="javascript:;">珠海市</a></li><li data-path="root|CN-44|CN-44-5"><a href="javascript:;">汕头市</a></li><li data-path="root|CN-44|CN-44-6"><a href="javascript:;">佛山市</a></li><li data-path="root|CN-44|CN-44-7"><a href="javascript:;">江门市</a></li><li data-path="root|CN-44|CN-44-8"><a href="javascript:;">湛江市</a></li><li data-path="root|CN-44|CN-44-9"><a href="javascript:;">茂名市</a></li></ul></div></div></div>
    </div>

</div>
<div class="row">
  <table class="table-product product-list products-list">
    <thead>
    <tr>
      <th class="table-col-1">零件信息</th>
      <th class="table-col-2">原厂信息</th>
      <th class="table-col-image">配件图</th>
      <th class="table-col-3">店铺</th>
      <th class="table-col-4">库存</th>
      <th class="table-col-5">价格（¥）</th>
      <th class="table-col-7">数量</th>
      <th class="table-col-9">操作</th>
    </tr>
    </thead>
      <tbody>

          <tr class="product-line" productid="Opt1105015" isoriginal="N" partnumber="8PK 1478" productstatusid="PRODUCT_ADDED" brandid="INA">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=Opt1105015" target="_blank" title="风扇皮带">
                          依纳
                          <span class="sep"> ｜ </span>
                          8PK 1478
                  </a>
                </div>
                <div class="row row-second"><div class="name">风扇皮带</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
		<div class="fl" model="original">原厂件：</div>
		<div class="first-item fl fix">
			<a href="http://ec-test.casstime.com/portal/products?p=11287628659&amp;F=true" title="点击查找原厂编号为 11287628659 的所有商品">
				11287628659「宝马」
			</a>
			<!--品牌件显示出原厂零件号及原厂品牌-->
			<input type="hidden" name="originalParts.partsNo" value="11287628659">
			<input type="hidden" name="originalParts.partsBrandId" value="BMW">

		</div>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/storeMain?productStoreId=OPT00001">
                          <i class="dt"></i>
                          <span>欧配通官方旗舰店</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=OPT00001&amp;type=product&amp;productId=Opt1105015" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="1" availableall="Y" requireinventory="Y" totalinventory="1">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="CN_ZZ" inventory="1" available="Y">
								郑州:1
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="94">¥&nbsp;94.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="0">-</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="ZXK41600865" isoriginal="Y" partnumber="61136901728" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=ZXK41600865" target="_blank" title="插头">
                          宝马
                          <span class="sep"> ｜ </span>
                          61136901728
                  </a>
                </div>
                <div class="row row-second"><div class="name">插头</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZBZXK">
                          <i class="dt"></i>
                          <span>中鑫之宝滞销库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=ZXK41600865" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="4" availableall="Y" requireinventory="Y" totalinventory="4">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZXZB_PTD" inventory="4" available="Y">
								圃田店:4
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="9">¥&nbsp;9.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="ZXK41601682" isoriginal="Y" partnumber="07119903918" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=ZXK41601682" target="_blank" title="进气歧管固定螺丝">
                          宝马
                          <span class="sep"> ｜ </span>
                          07119903918
                  </a>
                </div>
                <div class="row row-second"><div class="name">进气歧管固定螺丝</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZBZXK">
                          <i class="dt"></i>
                          <span>中鑫之宝滞销库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=ZXK41601682" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="6" availableall="Y" requireinventory="Y" totalinventory="6">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZXZB_JJD" inventory="6" available="Y">
								晋江店:6
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="8">¥&nbsp;8.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="ZXK41601977" isoriginal="Y" partnumber="16127229784" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=ZXK41601977" target="_blank" title="前部 进油管">
                          宝马
                          <span class="sep"> ｜ </span>
                          16127229784
                  </a>
                </div>
                <div class="row row-second"><div class="name">前部 进油管</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZBZXK">
                          <i class="dt"></i>
                          <span>中鑫之宝滞销库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=ZXK41601977" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="1" availableall="Y" requireinventory="Y" totalinventory="1">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZXZB_HYD" inventory="1" available="Y">
								花园店:1
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="606">¥&nbsp;606.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="ZXK41601994" isoriginal="Y" partnumber="17117510907" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=ZXK41601994" target="_blank" title="螺丝">
                          宝马
                          <span class="sep"> ｜ </span>
                          17117510907
                  </a>
                </div>
                <div class="row row-second"><div class="name">螺丝</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZBZXK">
                          <i class="dt"></i>
                          <span>中鑫之宝滞销库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=ZXK41601994" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="5" availableall="Y" requireinventory="Y" totalinventory="5">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZXZB_BJD" inventory="5" available="Y">
								北京店:5
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="17.99">¥&nbsp;17.99</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="ZXK41602600" isoriginal="Y" partnumber="51317172022" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=ZXK41602600" target="_blank" title="前风挡饰条MOULDING">
                          宝马
                          <span class="sep"> ｜ </span>
                          51317172022
                  </a>
                </div>
                <div class="row row-second"><div class="name">前风挡饰条MOULDING</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZBZXK">
                          <i class="dt"></i>
                          <span>中鑫之宝滞销库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=ZXK41602600" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="1" availableall="Y" requireinventory="Y" totalinventory="1">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZXZB_PDS" inventory="1" available="Y">
								平顶山:1
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="333">¥&nbsp;333.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="Zxk104234" isoriginal="Y" partnumber="34356790304" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=Zxk104234" target="_blank" title="后刹车感应线">
                          宝马
                          <span class="sep"> ｜ </span>
                          34356790304
                  </a>
                </div>
                <div class="row row-second"><div class="name">后刹车感应线</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZB0001">
                          <i class="dt"></i>
                          <span>中心库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=Zxk104234" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="24" availableall="Y" requireinventory="Y" totalinventory="24">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZZ_YUN" inventory="24" available="Y">
								郑州云仓:24
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="249">¥&nbsp;249.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="Zxk104236" isoriginal="Y" partnumber="34356791962" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=Zxk104236" target="_blank" title="后刹车感应线">
                          宝马
                          <span class="sep"> ｜ </span>
                          34356791962
                  </a>
                </div>
                <div class="row row-second"><div class="name">后刹车感应线</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZB0001">
                          <i class="dt"></i>
                          <span>中心库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=Zxk104236" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="53" availableall="Y" requireinventory="Y" totalinventory="53">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZZ_YUN" inventory="53" available="Y">
								郑州云仓:53
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="220">¥&nbsp;220.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="Zxk104249" isoriginal="Y" partnumber="66126912985" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=Zxk104249" target="_blank" title="遥控器电池">
                          宝马
                          <span class="sep"> ｜ </span>
                          66126912985
                  </a>
                </div>
                <div class="row row-second"><div class="name">遥控器电池</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZB0001">
                          <i class="dt"></i>
                          <span>中心库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=Zxk104249" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="128" availableall="Y" requireinventory="Y" totalinventory="128">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZZ_YUN" inventory="128" available="Y">
								郑州云仓:128
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="77">¥&nbsp;77.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="ZXK41602847" isoriginal="Y" partnumber="51757241831" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=ZXK41602847" target="_blank" title="车身下护板">
                          宝马
                          <span class="sep"> ｜ </span>
                          51757241831
                  </a>
                </div>
                <div class="row row-second"><div class="name">车身下护板</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZBZXK">
                          <i class="dt"></i>
                          <span>中鑫之宝滞销库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=ZXK41602847" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="1" availableall="Y" requireinventory="Y" totalinventory="1">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZXZB_TYD" inventory="1" available="Y">
								太原店:1
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="759">¥&nbsp;759.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="12950" isoriginal="Y" partnumber="11 61 1 433 328" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=12950" target="_blank" title="进气歧管垫*4">
                          宝马
                          <span class="sep"> ｜ </span>
                          11 61 1 433 328
                  </a>
                </div>
                <div class="row row-second"><div class="name">进气歧管垫*4</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/storeMain?productStoreId=HL000001">
                          <i class="dt"></i>
                          <span>华砺汽配旗舰店</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=HL000001&amp;type=product&amp;productId=12950" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="985" availableall="Y" requireinventory="Y" totalinventory="985">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="HL_SZ" inventory="985" available="Y">
								深圳:有货
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="252">¥&nbsp;252.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="12960" isoriginal="Y" partnumber="11 61 7 528 340" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=12960" target="_blank" title="进气歧管垫">
                          宝马
                          <span class="sep"> ｜ </span>
                          11 61 7 528 340
                  </a>
                </div>
                <div class="row row-second"><div class="name">进气歧管垫</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/storeMain?productStoreId=HL000001">
                          <i class="dt"></i>
                          <span>华砺汽配旗舰店</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=HL000001&amp;type=product&amp;productId=12960" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="966" availableall="Y" requireinventory="Y" totalinventory="966">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="HL_SZ" inventory="966" available="Y">
								深圳:有货
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="43">¥&nbsp;43.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="16805" isoriginal="Y" partnumber="1112 7553 999" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=16805" target="_blank" title="密封盖">
                          宝马
                          <span class="sep"> ｜ </span>
                          1112 7553 999
                  </a>
                </div>
                <div class="row row-second"><div class="name">密封盖</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/storeMain?productStoreId=CD000001">
                          <i class="dt"></i>
                          <span>存德汽配旗舰店</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=CD000001&amp;type=product&amp;productId=16805" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="5" availableall="Y" requireinventory="Y" totalinventory="5">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="CD_GZ" inventory="5" available="Y">
								广州:有货
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="145">¥&nbsp;145.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="16980" isoriginal="Y" partnumber="1712 7524 841" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=16980" target="_blank" title="水管(付水壶)">
                          宝马
                          <span class="sep"> ｜ </span>
                          1712 7524 841
                  </a>
                </div>
                <div class="row row-second"><div class="name">水管(付水壶)</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/storeMain?productStoreId=CD000001">
                          <i class="dt"></i>
                          <span>存德汽配旗舰店</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=CD000001&amp;type=product&amp;productId=16980" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="2" availableall="Y" requireinventory="Y" totalinventory="2">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="CD_GZ" inventory="2" available="Y">
								广州:有货
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="1070">¥&nbsp;1,070.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="2649febc09b04beaad96" isoriginal="N" partnumber="584.950" productstatusid="PRODUCT_ADDED" brandid="ELRING">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=2649febc09b04beaad96" target="_blank" title="气门室盖垫">
                          爱尔铃
                          <span class="sep"> ｜ </span>
                          584.950
                  </a>
                </div>
                <div class="row row-second"><div class="name">气门室盖垫</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
		<div class="fl" model="original">原厂件：</div>
		<div class="first-item fl fix">
			<a href="http://ec-test.casstime.com/portal/products?p=11127559311&amp;F=true" title="点击查找原厂编号为 11127559311 的所有商品">
				11127559311「宝马」
			</a>
			<!--品牌件显示出原厂零件号及原厂品牌-->
			<input type="hidden" name="originalParts.partsNo" value="11127559311">
			<input type="hidden" name="originalParts.partsBrandId" value="BMW">

				<ul>
					<li model="original" partsno="11127559311|584.950" partsbrandid="BMW|ELRING">
								<a href="http://ec-test.casstime.com/portal/products?p=11127559311&amp;F=true" title="点击查找原厂编号为 11127559311 的所有商品">
									11127559311「宝马」
								</a>

					</li>
					<li model="original" partsno="11127582245|584.950" partsbrandid="BMW|ELRING">
								<a href="http://ec-test.casstime.com/portal/products?p=11127582245&amp;F=true" title="点击查找原厂编号为 11127582245 的所有商品">
									11127582245「宝马」
								</a>

					</li>
				<b class="closeMore"></b>
				</ul>
				<b class="openMore"></b>
		</div>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/storeMain?productStoreId=OPT00001">
                          <i class="dt"></i>
                          <span>欧配通官方旗舰店</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=OPT00001&amp;type=product&amp;productId=2649febc09b04beaad96" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="2" availableall="Y" requireinventory="Y" totalinventory="2">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="CN_GZ" inventory="2" available="Y">
								广州:2
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="21">¥&nbsp;21.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="0">-</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="HL32300579" isoriginal="Y" partnumber="11 24 7 589 533" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=HL32300579" target="_blank" title="连杆(4支/套)">
                          宝马
                          <span class="sep"> ｜ </span>
                          11 24 7 589 533
                  </a>
                </div>
                <div class="row row-second"><div class="name">连杆(4支/套)</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/storeMain?productStoreId=HL000001">
                          <i class="dt"></i>
                          <span>华砺汽配旗舰店</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=HL000001&amp;type=product&amp;productId=HL32300579" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="3" availableall="Y" requireinventory="Y" totalinventory="3">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="HL_SZ" inventory="3" available="Y">
								深圳:有货
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="4180">¥&nbsp;4,180.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="14226" isoriginal="Y" partnumber="17 13 8 621 092" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=14226" target="_blank" title="副水壶">
                          宝马
                          <span class="sep"> ｜ </span>
                          17 13 8 621 092
                  </a>
                </div>
                <div class="row row-second"><div class="name">副水壶</div><div class="description" title="副水壶">副水壶</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
		<div class="fl" model="replace">替换件：</div>
		<div class="first-item fl fix">
			<a href="http://ec-test.casstime.com/portal/products?p=17137647290&amp;F=true" title="点击查找原厂编号为 17137647290 的所有商品">
				17137647290「宝马」
			</a>
			<!--品牌件显示出原厂零件号及原厂品牌-->
			<input type="hidden" name="originalParts.partsNo" value="17137647290">
			<input type="hidden" name="originalParts.partsBrandId" value="BMW">

		</div>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZB0001">
                          <i class="dt"></i>
                          <span>中心库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=14226" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="2" availableall="Y" requireinventory="Y" totalinventory="2">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZZ_YUN" inventory="2" available="Y">
								郑州云仓:2
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="0">-</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>
          <tr class="product-line" productid="14239" isoriginal="Y" partnumber="12417526236" productstatusid="PRODUCT_ADDED" brandid="BMW">
              <td class="table-col-1">
                <div class="row row-first">
                  <a href="http://ec-test.casstime.com/portal/products?productId=14239" target="_blank" title="起动机">
                          宝马
                          <span class="sep"> ｜ </span>
                          12417526236
                  </a>
                </div>
                <div class="row row-second"><div class="name">起动机</div></div>
              </td>

              <td class="table-col-2 allBrandmessage">
                <div class="row row-first" style="margin-top: 20px;">
<div class="related-parts dropdown-list" style="text-align:center">
 <span>-</span>
</div>                </div>
              </td>

		      <td class="table-col-image">
		        <div class="row row-first">
		          <a class="images-viewer-link" href="javascript:void(0)"><span class="icon icon-picture icon-blue-picture"></span></a>
		        </div>
		      </td>

              <td class="table-col-3">
                <div class="row row-first">
                    <a target="_blank" href="http://ec-test.casstime.com/portal/main?productStoreId=ZXZB0001">
                          <i class="dt"></i>
                          <span>中心库</span>
                      </a>
                </div>
                <div class="row row-second"><a href="http://ec-test.casstime.com/WebIM/chat?chatTo=SUPER007&amp;type=product&amp;productId=14239" target="_blank"><span class="icon icon-service-online"></span>店小二</a></div>
              </td>

              <td class="table-col-4 repository">
                <div class="row row-first" style="visibility:hidden;">
                	<div class="dropdown dropdowm-custom-select" style="top: 9px; visibility: visible;">
	<div class="product-inventory dropdown-list fix" style="padding-left:0;" maxinventory="1" availableall="Y" requireinventory="Y" totalinventory="1">

					<!--如果是来自后台或者是允许显示数量的那么将会显示数量否则则只能显示有货缺货  -->
				<div class="first-item fl fix" style="padding-right:10px;">
					<a facilityid="ZZ_YUN" inventory="1" available="Y">
								郑州云仓:1
					</a>
				</div>
	</div>
              		</div>
                </div>
              </td>

              <td class="table-col-5 onsale-price" style="color: #666666;">

	    <div class="row row-first onsale-price sales-price">
			销售价：
				<span price="1">¥&nbsp;1.00</span>
		</div>
			<div class="row row-second">
				4S店价：
				<span price="5370">¥&nbsp;5,370.00</span>
			</div>


              </td>

              <td class="table-col-7">
                <div class="row row-first" style="margin-top: 20px;">
                  <div class="spinner product-count">
                    <button class="spinner-left-button" onclick="productReduce(this);">-</button>
                    <input type="text" value="1" name="quantity" autocomplete="off" timer="" maxlength="5" onafterpaste="productNum(this);">
                    <button class="spinner-right-button" onclick="productAdd(this);">+</button>
                  </div>
                </div>
              </td>
              <td class="table-col-9">
                <div class="row product-action"><button class="btn btn-sm btn-stable-outline btn-buy-now" onclick="addItem(this)">加入购物车</button><button class="btn btn-sm btn-assertive-outline btn-to-trolley" onclick="addItem(this,&#39;Y&#39;)">立即购买</button></div>
              </td>
          </tr>

     </tbody>
  </table>
 </div>
  <div id="productLoadMoreCheck" class="row" style="text-align: center;height: 40px;line-height: 40px;font-size: 15px;font-family: 微软雅黑;display: block;background-color: #f8f8f8;margin: 20px 0px;">
 	<a href="javascript:void(0);"><span>点击加载更多...</span></a>
 </div>
  <div id="productLoadMore" class="row" style="text-align: center;height: 100px;line-height: 100px;display:none;">
 	<img src="./开思_files/58pic_53e07d959f7f2.gif">
 </div>

<script language="javascript" type="text/javascript">
$(function(){
	var range = $(".main-footer").height();             //距下边界长度/单位px
	//var pageIndex = 2;//之前的分页，当前页数（被下面的start替代）
	var start = '20';//滚动异步加载，当前起始条数

	$("#productLoadMoreCheck a").click(function (){
		if($(".products-list .no-data").length > 0){return ;}
    	$("#productLoadMoreCheck").toggle();
    	$("#productLoadMore").toggle();
    	var params = seachProductsParams();
    	if(params===""||typeof params=='undefined'){
    		params = "?start=" + start;
    	}else{
    		params = params + "&start=" + start;
    	}
		$.ajax({
		    url: "/portal/getProducts"+params,
		    type : "post",
		    dataType:'html',
		    async : true,
		    success:function(response){
		    	$(".table-product").append(response)
			    if($(".products-list .no-data").length == 0){
			    	$("#productLoadMoreCheck").toggle();
			    }
		    	$("#productLoadMore").toggle();
		    	start = $(response).find("#start").val();
		    },
		    error:function(response, status) {
		    }
		});
	});


	//使用自己重新的图片扩展
    layer.config({extend: 'extend/layer.custom-photos.js'});

    //配置弹出层皮肤
    //layer.config({
    //  skin: 'layer-ext-casstime',
    //  extend: 'skin/casstime/style.css'
    //});

	//初始化配送区域
	$.ajax({
	    url: "/portal/getDeliveryAreas",
	    type:'get',
	    dataType:'json',
	    async : false,
	    cache : false,//设为false，解决IE下无法刷新的问题
	    success:function(response){
	    	$('.area-selector').areaSelector({
			  areas: response.areas,
			  defaultPath: [response.province, response.city],
			  done: function (result) {
			    setDeliveryAraeGeo(result[1]);
			  }
			});
	    },
	    error:function(response, status) {
	    	//咋办？
	    }
	});

	/*
*/
	//获取当前商品所有的品牌信息，如果有跟查询车型一样的品牌信息，那么就回填该商品零件号信息，如果没有直接返回当前商品的零件号
	function patchSearchBrandCode(obj){
		var selectCarBrandCode=$("#selectCarBrandCode").val();
		var productLine = findParentElementByClassName(obj, "product-line");
		var brandId = productLine.attr("brandId");
		var partsNo = productLine.attr("partnumber");

		var partsBrandId=$(obj).find("input[name='originalParts.partsBrandId']").val();
    	if(partsBrandId && brandId!=partsBrandId){
    		var partsNo=$(obj).find("input[name='originalParts.partsNo']").val();
    	}
		return partsNo;
	}

	var potojson = null;
	//这里隐藏域如果修改必须知会下 这里修复下动态加载导致的事件丢失
	$('body').on('click','.images-viewer-link',function(e) {
		var that=this;
		var carmodelNew=$("#searchCarModelId").val();
		var epcInfo = new Object();
		if (!carmodelNew) {
			var index = layer.open({
				  title:"<div class='icon-tip-open'></div><div>请输入车架号</div>",
				  content: '<div style="margin-top:30px;text-align:center"><input  style="vertical-align:middle;width:300px;height:32px;border:#cccccc solid 1px;" placeholder="请输入车架号" id="vinCodeToShow" value=""/></div>',
				  btn: ['确定'],
				  yes: function(index, layero){
						$.ajax({
					        url:"/maindata/api/CarModel/" +$("#vinCodeToShow").val(),
					        type:'get',
					        dataType:'json',
					        async : false, //默认为true 异步
					        success:function(response){
					        	carmodelNew= response.id;
					        	epcInfo.cm=response.id;
					        	epcInfo.name=response.carModelDescription;
					        	layer.closeAll();
					        	var index = layer.load(1, {time: 10*1000});
					    	    e.preventDefault();
					    	    potojson = null;
					    	    var productLine = findParentElementByClassName(that, "product-line");
					    	    var tableLineImage= findParentElementByClassName(that,"table-col-image");
					    	    var allBrandmessage=$(tableLineImage).siblings(".allBrandmessage");
					    	    //获取当前节点下所有的品牌
					        	var partsNo=patchSearchBrandCode(allBrandmessage);
					    	    var getEPCModelListUrl = "/portal/getEPCModelList?productId=" + productLine.attr("productid");
					    	    if (carmodelNew) getEPCModelListUrl += "&carModelId=" + carmodelNew;
					    	    $.ajax({
					    		    url: getEPCModelListUrl, type:'get',
					    		    dataType:'json', async : false, //默认为true 异步
					    		    success:function(response){
					    		    	//console.log(response);
					    		    	//暂时取结果的第一笔查图
					    		    	//这里查询信息的品牌与零件号是当前行的商品信息。而epcmodel确实根据查询条件里面的处理信息，会出现问题如下：当前行为奔驰，而查询信息为aodi组装的信息就成了benz/audi_epc/benz_partNum，
					    		    	//最后结果无法查询
					    		    	//现逻辑调整如下，brandId 改为查询项里面的品牌，零件号为查询项里面的零件号，获取方式修改为根据当前行获取到所有的原厂件替换件list如果有跟查询项相关的信息那么就获取，如果没有直接当前行的填写
					    		    	//（该处理将导致直接没有数据）
					    		    	if (response.originalParts && response.originalParts.length > 0 && response.epcModels && response.epcModels.length > 0) {
					    		    		var getExplodeImg = "/maindata/api/images/" + response.originalParts[0].brandId + "/" + response.epcModels[0].epcModelCode + "/" + response.originalParts[0].partNum;
					    		    		//var getExplodeImg = "/maindata/api/images/" + $("#selectCarBrandCode").val() + "TONGYANG/" + response.epcModels[0].epcModelCode + "/" + partsNo;
					    		    		$.ajax({
					    					    url: getExplodeImg,
					    					    data: {"epcModelName": encodeURI(response.epcModels[0].epcModelName, "UTF-8")},
					    					    type:'get', dataType:'json', async : false, //默认为true 异步
					    					    contentType: "application/x-www-form-urlencoded; charset=utf-8",
					    					    success:function(response){
					    					    	potojson = response;
					    					    	$("#searchCarModelId").val(epcInfo.cm).attr("cm",epcInfo.cm);
										        	$(".epcNameShow").html(epcInfo.name);
										        	var html='<a id="delCarModel" class="icon-disabled" onclick="javascript:delCarModel()"></a>';
										        	$(".epcNameShow").siblings("#delCarModel").remove();
										        	$(".epcNameShow").parent("div").append(html);
					    					    },
					    					    error:function(response, status) {
					    							noImage();
					    					    }
					    					});
					    				} else {
					    					noImage();
					    				}
					    		    },
					    		    error:function(response, status) {
					    		    	layer.closeAll();
					    		    	console.log("getEPCModelList fail 1-=> " + response);
					    				noImage();
					    		    }
					    		});

					    		layer.close(index);

					    		if (potojson != null) {
					    			//自定义的图片弹出层
					    		    layer.cphotos({
					    		      photos: potojson,
					    		      shift: 5, //动画类型
					    		      closeBtn: 2,  //右上角X
					    		      skin: 'layer-ext-casstime', //使用自己的皮肤
					    		      shade: [0.3, '#000']  //遮罩透明度
					    		    });
					    	    }

					    	    function noImage() {
					    	    	layer.open({
					    			  type: 1, title: false,
					    			  area: ['530px', '403px'], //宽高
					    			  content: '<img src="/defaultTheme/apps/portal/images/product/no_images.jpg" />'
					    			});
					    	    }
					        },
					        error:function(response){
					        	layer.closeAll();
					        	console.log("getEPCModelList fail2 -=> " + response);
			    				noImage();

					        }
						});
					  },
					});
			//selectCarModelWin();
			//return false;
		}else{
			        	var index = layer.load(1, {time: 10*1000});
			    	    e.preventDefault();
			    	    potojson = null;
			    	    var productLine = findParentElementByClassName(that, "product-line");
			    	    var tableLineImage= findParentElementByClassName(that,"table-col-image");
			    	    var allBrandmessage=$(tableLineImage).siblings(".allBrandmessage");
			    	    //获取当前节点下所有的品牌
			        	var partsNo=patchSearchBrandCode(allBrandmessage);
			    	    var getEPCModelListUrl = "/portal/getEPCModelList?productId=" + productLine.attr("productid");
			    	    if (carmodelNew) getEPCModelListUrl += "&carModelId=" + carmodelNew;
			    	    $.ajax({
			    		    url: getEPCModelListUrl, type:'get',
			    		    dataType:'json', async : false, //默认为true 异步
			    		    success:function(response){
			    		    	//console.log(response);
			    		    	//暂时取结果的第一笔查图
			    		    	//这里查询信息的品牌与零件号是当前行的商品信息。而epcmodel确实根据查询条件里面的处理信息，会出现问题如下：当前行为奔驰，而查询信息为aodi组装的信息就成了benz/audi_epc/benz_partNum，
			    		    	//最后结果无法查询
			    		    	//现逻辑调整如下，brandId 改为查询项里面的品牌，零件号为查询项里面的零件号，获取方式修改为根据当前行获取到所有的原厂件替换件list如果有跟查询项相关的信息那么就获取，如果没有直接当前行的填写
			    		    	//（该处理将导致直接没有数据）
			    		    	if (response.originalParts && response.originalParts.length > 0 && response.epcModels && response.epcModels.length > 0) {
			    		    		var getExplodeImg = "/maindata/api/images/" + response.originalParts[0].brandId + "/" + response.epcModels[0].epcModelCode + "/" + response.originalParts[0].partNum;
			    		    		//var getExplodeImg = "/maindata/api/images/" + $("#selectCarBrandCode").val() + "TONGYANG/" + response.epcModels[0].epcModelCode + "/" + partsNo;
			    		    		$.ajax({
			    					    url: getExplodeImg,
			    					    data: {"epcModelName": encodeURI(response.epcModels[0].epcModelName, "UTF-8")},
			    					    type:'get', dataType:'json', async : false, //默认为true 异步
			    					    contentType: "application/x-www-form-urlencoded; charset=utf-8",
			    					    success:function(response){
			    					    	potojson = response;
			    					    },
			    					    error:function(response, status) {
			    							noImage();
			    					    }
			    					});
			    				} else {
			    					noImage();
			    				}
			    		    },
			    		    error:function(response, status) {
			    		    	console.log("getEPCModelList fail3 -=> " + response);
			    		    	layer.closeAll();
			    				noImage();
			    		    }
			    		});

			    		layer.close(index);

			    		if (potojson != null) {
			    			//自定义的图片弹出层
			    		    layer.cphotos({
			    		      photos: potojson,
			    		      shift: 5, //动画类型
			    		      closeBtn: 2,  //右上角X
			    		      skin: 'layer-ext-casstime', //使用自己的皮肤
			    		      shade: [0.3, '#000']  //遮罩透明度
			    		    });
			    	    }

			//selectCarModelWin();
			//return false;
		}
	});
});

function noImage() {
	layer.open({
	  type: 1, title: false,
	  area: ['530px', '403px'], //宽高
	  content: '<img src="/defaultTheme/apps/portal/images/product/no_images.jpg" />'
	});
}
//搜索文本框响应enter按键  --chenwu 2016-3-30 16:05:28
function keywordInputEnter(e){
   	var keynum = window.event ? e.keyCode : e.which;
   	if(keynum == 13){ //13对应Enter 按钮
   		seachResultKeyWord();
   		e.preventDefault();
   	}


}
//在结果中搜索
function seachResultKeyWord(){
   var resultKeyWord =  $("#resultKeyWord").val();
   $("#resultKeyWord").attr("resultKeyWord",resultKeyWord);
   seachProducts();
}

function findCarModelByVIN(vinId) {
	if(vinId.length != 17) {
		return;
	}
	$.ajax({
        url:"/maindata/api/CarModel/" + vinId,
        type:'get',
        dataType:'json',
        async : false, //默认为true 异步
        success:function(response){
        	//LBV5S3108ESK02173
        	//
        	return response.id;
        },
        error:function(response) {
        	return null;
        }
	});

}

</script>
<!-- End Template component://ecommerce/webapp/portal/product/ProductView.ftl -->
</div><!-- Begin Template component://ecommerce/webapp/portal/includes/footer.ftl -->
<footer class="main-footer">
<style>
.header-foot{
margin-left:15px; font-size:15px;font-family:'微软雅黑';color:#333333
}
.main-footer .services ul li{
 list-style:none;
}
</style>
    <div class="row advantage" style=""></div>
  <div style="background-color:#fcfcfc">
  <div class="container">
    <div class="row services">
      <div class="col-xs-2">
        <div class="header-foot">新手帮助</div>
        <ul>
          <li>购买流程</li>
          <li>门店认证</li>
          <li>常见问题</li>
        </ul>
      </div>
      <div class="col-xs-2">
        <div class="header-foot" style="margin-left:15px;">常见问题</div>
        <ul>
          <li><a href="http://ec-test.casstime.com/portal/helpCenterOrderStatus">订单状态</a></li>
          <li>发票说明</li>
        </ul>
      </div>
      <div class="col-xs-2">
        <div class="header-foot" style="margin-left:15px;">支付方式</div>
        <ul>
          <li>企业网银</li>
          <li>在线支付</li>
          <li>账期支付</li>
        </ul>
      </div>
      <div class="col-xs-2">
        <div class="header-foot" style="margin-left:15px">配送服务</div>
        <ul>
          <li>客服自提</li>
          <li>配送范围</li>
          <li><a href="http://ec-test.casstime.com/portal/helpCenterShipFee">运费说明</a></li>
        </ul>
      </div>
      <div class="col-xs-2">
        <div class="header-foot" style="margin-left:20px">售后服务</div>
        <ul>
          <li><a href="http://ec-test.casstime.com/portal/helpCenterReturnPolicy">退换货政策</a></li>
          <li><a href="http://ec-test.casstime.com/portal/helpCenterReturnProgram">退换货流程</a></li>
          <li>退款说明</li>
          <li>联系客服</li>
        </ul>
      </div>
      <div class="col-xs-2">
         <h2 class="hot-line">开思热线</h2>
        <div class="tel">400-168-6600</div>
        <button class="btn btn-sm btn-assertive pull-right service-btn" onclick="window.open(&#39;/WebIM/chat?chatTo=SUPER007&amp;type=store&#39;)">
                <span class="icon-online-service"></span>
                <span>开思客服</span>
        </button>
      </div>
    </div>
  </div>
  </div>
</footer>
<div class="copyright" style="background-color:#3e3e3e;color:#f5f5f5">
  <div class="container">
    <div class="row">
      <div class="col-xs-12" style="font-family:&#39;微软雅黑&#39;">
        <span>Copyright © 2016 CassTime.</span>
        <span><a href="http://www.miitbeian.gov.cn/" style="color: #f5f5f5;" target="_blank">ICP证:粤ICP备15084413号-1</a></span>
      </div>
    </div>
  </div>
</div>
<!-- End Template component://ecommerce/webapp/portal/includes/footer.ftl -->
<!-- Begin Template component://ecommerce/webapp/portal/includes/closehtml.ftl -->
  <!-- 让Bootstrap 3兼容IE8浏览器 Jimxu -->
  <!--[if lte IE 9]>
  <script src="http://ec-test.casstime.com/static/skins/assets/Respond-1.4.2/dest/respond.min.js"></script>
  <script src="http://ec-test.casstime.com/static/skins/assets/html5/html5.js"></script>
  <![endif]-->
  <script type="text/javascript">var STATIC_ROOT="/defaultTheme/apps";var curRequestUri = "&#47;portal&#47;products";</script>

  <script type="text/javascript" src="./开思_files/jquery.tooltip.js.下载"></script>
  <script type="text/javascript" src="./开思_files/common.js(1).下载"></script>
  <script type="text/javascript" src="./开思_files/kkpager.js.下载"></script>
  <script type="text/javascript" src="./开思_files/main.js.下载"></script>
  <script type="text/javascript" src="./开思_files/autocomplete.min.js.下载"></script>


  <meta name="generator" content="Apache OFBiz - eCommerce">
  <script>
	//百度统计
	var cassmall_reg = /cassmall.com$/
	  if(cassmall_reg.test(location.host)){
	    //百度统计
	    var _hmt = _hmt || [];
	    (function () {
	      var hm = document.createElement("script");
	      hm.src = "//hm.baidu.com/hm.js?2f121731faa435df7b173e563ee84747";
	      var s = document.getElementsByTagName("script")[0];
	      s.parentNode.insertBefore(hm, s);
	    })();
	  }
  </script>


<!-- End Template component://ecommerce/webapp/portal/includes/closehtml.ftl -->
<!-- End Section Widget  -->
<!-- End Screen component://ecommerce/widget/CommonScreens.xml#top-decorator -->
<!-- End Screen component://ecommerce/widget/portal/ProductsScreens.xml#ProductSearchMain -->
<ul class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" id="ui-id-1" tabindex="0" style="display: none;"></ul><span role="status" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible"></span><div class="mui-mbar-tabs" style="z-index: 99999;"><div class="quick_links_wrap"><div class="quick_link_mian"><div class="quick_links_panel" style="display: block;"><div id="quick_links" class="quick_links"><li onclick="javascript:window.location.href =&#39;/portal/personalData&#39;"><a class="my_qlinks"><i class="setting"></i></a><div class="mp_tooltip">会员中心</div></li><li id="shopCart" onclick="javascript:window.location.href =&#39;/orders/ShoppingCart&#39;"><a class="message_list"><i class="message"></i><div class="span">购物车</div><span class="cart_num shopping-amount">0</span></a></li><li id="accessoriesBar"><a class="accessories_bar"><i class="accessories"></i><div class="span">配件篮</div><span class="cart_num bar-amount">0</span></a></li><li><a class="history_list" style="position: relative; visibility: visible;"><i class="view"></i><span class="remind-im"></span><span class="dot" style="position: absolute; top: 7px; left: 24px; color: rgb(226, 46, 51); width: 8px; border-radius: 50%; height: 8px; background: red;"></span></a><div class="mp_tooltip">我的消息</div></li><li onclick="window.open(&quot;/WebIM/chat?chatTo=SUPER007&quot;)"><a class="mpbtn_histroy"><i class="zuji"></i></a><div class="mp_tooltip">开思客服</div></li><li class="quick_toggle" onclick="javascript:window.location.href =&#39;#top&#39;"><a class="return_top"><i class="top"></i></a><div class="mp_tooltip">顶部</div></li></div></div><div id="quick_links_pop" class="quick_links_pop hide"></div></div></div></div><iframe src="./开思_files/auth.html" name="authFrame" style="display: none;"></iframe></body></html>
